package org.xg.study.pd;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName SSOInterceptor
 * @date 2021/9/15 10:52
 **/
public class SSOInterceptor implements HandlerInterceptor{
    @Override
    public boolean preHandle(String request, String response, Object handler) {
        //模拟获取cookie
        String ticket = request.substring(1,8);
        return ticket.equals("success");
    }
}
